GFD 1.04.5, muxman, titlesets, Advanced Mode.
I'm using the <pre> from this thread to "remember" the button highlight for which titleset was played...
https://forum.videohelp.com/topic310993-30.html#1626047
... but of course it doesn't work when jumping back from a submenu to the "parent" submenu that called it.
I have a mainmenu with four buttons, each jumping to a submenu. One of those submenus also has four of its own buttons that jump to different submenus, like so:
mainmenu
• mainsubmenu1
• mainsubmenu2
• mainsubmenu3
• mainsubmenu4
mainsubmenu4
• mainsubmenu5
• mainsubmenu6
• mainsubmenu7
• mainsubmenu8
So, what <pre> code should I use to "remember" the button highlights in MainMenu and MainSubMenu4? Maybe each MainSubMenu needs to set a register in its <pre>, so I can then query that register in the MainMenu <pre>?
Does each of the eight SubMenus need to set its own unique register? Or can I reuse the same register?Code:g5=1
And I suppose the MainMenu <pre> is something like this?
I'm an artist by training, so I'm fairly inexperienced with VM programming concepts. But I'm learning as I go! Thanks for any help.Code:Mov GPRM0, 1 if ( GPRM0 == SPRM5 ) SetHL_BTNN HL_BTNN=1 Mov GPRM0, 2 if ( GPRM0 == SPRM6 ) SetHL_BTNN HL_BTNN=2 Mov GPRM0, 3 if ( GPRM0 == SPRM7 ) SetHL_BTNN HL_BTNN=3 ... Mov GPRM0, 1
+ Reply to Thread
Results 1 to 3 of 3
-
-
The if ( GPRM0 == SPRM5 ) will not help you here as SPRM5 is the VTS Title Track Number, which is useful to check the last played title, but not to remember the last button in case of jumping between menus.
Does each of the eight SubMenus need to set its own unique register?
Let's use GPRM10 for the MainMenu and GPRM11 for MainSubMenu4
GPGR5 is a 'local' variable which is loaded with the constants as the if ... SetHL_BTNN ... can only compare two registers, not a register with a consant value.
On your MainMenu the pre command can look like this:
Mov GPRM5, 0
if ( GPRM10 == GPRM5 ) SetHL_BTNN HL_BTNN=1
Mov GPRM5, 1
if ( GPRM10 == GPRM5 ) SetHL_BTNN HL_BTNN=1
Mov GPRM5, 2
if ( GPRM10 == GPRM5 ) SetHL_BTNN HL_BTNN=2
...
Mov GPRM0, 1
In each submenu mainsubmenu1 to mainsubmenu4 you use a pre command which sets the register GPRM10 like Pre command for mainsubmenu3: Mov GPRM10, 3
For MainSubMenu4 to MainSubMenu8 you can use a similar approach:
MainSubMenu4:
Mov GPRM10, 4 # for go back to the MainMenu!
Mov GPRM5, 0
if ( GPRM11 == GPRM5 ) SetHL_BTNN HL_BTNN=1
Mov GPRM5, 1
if ( GPRM11 == GPRM5 ) SetHL_BTNN HL_BTNN=1
...
Pre command for MainSubMenu5:
Mov GPRM11, 1
...GUI for dvdauthor:
https://www.videohelp.com/~gfd/ -
Thanks for the help borax. I'll try this out Monday when I get back to work. I'm still trying to wrap my brain around the registers, I think it will help to read more about the DVD spec and how it all works.
Similar Threads
-
GfD: delete a submenu?
By AlanHK in forum Authoring (DVD)Replies: 11Last Post: 22nd Mar 2009, 07:08 -
GFD software, How to customly put words in a button
By volam in forum Authoring (DVD)Replies: 5Last Post: 17th Nov 2008, 06:01 -
GFD Software, How to customly put text in button
By volam in forum Authoring (VCD/SVCD)Replies: 1Last Post: 11th Nov 2008, 09:53 -
GfD button highlights
By bratpop in forum Authoring (DVD)Replies: 1Last Post: 3rd Jan 2008, 06:38 -
Chapter button pop-up text description in GFD?
By awesomer in forum Authoring (DVD)Replies: 6Last Post: 18th Nov 2007, 19:21